<?php
session_start();
error_reporting(E_ALL);
	ini_set('display_errors', '1');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>class - notes...collectin school material easily!</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="class-notes" />
<meta name="robots" content="NOINDEX, NOFOLLOW">
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="js/jquery_ui_custom.js" ></script>
<link href="design/ui-lightness/jquery_ui.css" rel="stylesheet" type="text/css">
<link href="design/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div id="head">
   		<a href="?site=home"><img id="logo" src="design/head.png"></a>
				 </div>
	<div id="navicontainer">

<?php
echo '<div id="navi">		  <ul>
			<li>
				<a href="?site=home">Home</a>
			</li></ul></div><div id="userpanel">
			<ul>
				<li>
					<a href="?site=login">Login</a>
			</li></ul></div>';
?>
</div>
<div id="content">
<?php

$site = array();
$site['home'] = "home.php";
$site['impressum'] = "impressum.php";
$site['login'] = "login.php";
$site['http404'] = "errors/404.php";


if(isset($_GET['site']))
{
	if(isset($site[$_GET['site']])) include $site[$_GET['site']];
	else include $site['http404'];
}
else include $site['home'];

?>
  </div>
    </div>
	<div id="footer">
		<table id="tfooter" border="0">
    		<tr>
      			<td class="footercontent">
        			<font>Seiten:</font><br />
        			<a href="?site=home">Home</a> | <a href="?site=course">F&auml;cher</a>  | <a href="?site=impressum">Impressum</a>
        			<br />
        			<br />
        			&copy; 2011 by Tobias Lorenz & Falk Schulze<br />
        		</td>
			</tr>
  		</table>
 	</div>
</body>
</html>